#include <iostream>
using namespace std; 
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
#define N 7
/*int main() 
{
	
	
	int ret =1;
	for(int i=1;i<=5;i++)
	{
		ret=ret*i%N;
	}
	int sum =1; 
	for(int i=1;i<=5;i++)
	{
		sum*=i;
	}
	cout<<(sum%N)<<endl<<ret;
	return 0;
	
}
*/
